﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace Language_Editor
{ //virker ikke på nuværende tidspunkt men skellettet for funktionalitet er lavet i selve guien
    public partial class NewElement : Telerik.WinControls.UI.RadForm
    {
        private CultureInfo current;
        public NewElement()
        {
            InitializeComponent();
            current = new CultureInfo(ConfigManager.Config.AppSettings.Settings[ConfigManager.LANGUAGE].Value);
            LblLangValue.Text = current.Name;
        }

        private void btnChange_Click(object sender, EventArgs e)
        {
            PickLanguage plw = new PickLanguage();
            CultureInfo ci = plw.getNew();
            if (ci != null)
            {
                current = ci;
                LblLangValue.Text = ci.Name;
            }
        }
    }
}
